<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="path" value="${pageContext.request.contextPath }"></c:set>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>CMDB-添加人员</title>
    <link href="${path}/css/style.css" rel="stylesheet" type="text/css">
    <link href="${path}/sys/person_management/add_person.css" rel="stylesheet" type="text/css">
    <link href="${path}/common/plugins/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">
    <script src="${path}/js/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="${path}/js/user_js.js"></script>
    <script src="${path}/common/plugins/bootstrap/js/bootstrap.js"></script>
    <script src="${path}/common/plugins/layer/layer.js"></script>
    <script src="add_person.js"></script>
</head>
<body>
<input type="hidden" id="personId" value="${sysStaffVO.personId}" />
<div class="content_condition oneContent">
    <div class="content_group">
        <div class="span5">
            <label class="control-label">用户名:</label>
            <div class="controls">
                <input id="personName" type="text" value="${sysStaffVO.personName}" />
                <span class="redbtn">*</span>
            </div>
        </div>
    </div>
    
    <div class="content_group">
        <div class="span5">
            <label class="control-label">登录名:</label>
            <div class="controls">
                <input id="personCode1" type="text"  value="${sysStaffVO.personCode}" />
                <input id="personCode" type="text" style="display: none;" /><!-- 用于接收浏览器的自动填充表单数据，防止页面被浏览器乱填 -->
                <span class="redbtn">*</span>
                <span class="redbtn" id="personCodeSpan"></span>
            </div>
        </div>
    </div>
    
    <c:if test="${sysStaffVO.personPassword==null}">
    	
    	<div class="content_group">
        <div class="span5">
            <label class="control-label">密码:</label>
            <div class="controls">
                <input id="personPassword3" type="password" style="display: none" /><!-- 用于接收浏览器的自动填充表单数据，防止页面被浏览器乱填 -->
                <input id="personPassword1" type="password"  value="${sysStaffVO.personPassword}" />
                <span class="redbtn">*</span>
            </div>
        </div>
    </div>
    <div class="content_group">
        <div class="span5">
            <label class="control-label">密码确认:</label>
            <div class="controls">
                <input id="personPassword2" type="password" value="${sysStaffVO.personPassword}" />
                <span class="redbtn">*</span>
                <span class="redbtn" id="passwordSpan"></span>
            </div>
        </div>
   	</div>
    	
    </c:if>
    
    
    <div class="content_group">
        <div class="span5">
            <label class="control-label">身份证号:</label>
            <div class="controls">
                <input id="idendtityNo" type="text" value="${sysStaffVO.idendtityNo}" />
                <span class="redbtn" id="idCardSpan"></span>
            </div>
        </div>
    </div>
    
    <div class="content_group">
        <div class="span5">
            <label class="control-label">分机号:</label>
            <div class="controls">
                <input id="officePhone" type="text" value="${sysStaffVO.officePhone}" />
            </div>
        </div>
    </div>
    
    <div class="content_group">
        <div class="span5">
            <label class="control-label">手机号码:</label>
            <div class="controls">
                <input id="mobilePhone" type="text" value="${sysStaffVO.mobilePhone}" />
                <span class="redbtn" id="phoneSpan"></span>
            </div>
        </div>
    </div>
    
    <div class="content_group">
        <div class="span5">
            <label class="control-label">email:</label>
            <div class="controls">
                <input id="email" type="text" value="${sysStaffVO.email}" />
                <span class="redbtn" id="emilSpan"></span>
            </div>
        </div>
    </div>
    
    <div class="content_group">
        <div class="span5">
            <label class="control-label">人员状态:</label>
            <div class="controls">
                <select id="state" name="state">
                		<option <c:if test="${sysStaffVO.personState==null||sysStaffVO.personState=='9ea'}">selected</c:if>>启用</option>
                    	<option  <c:if test="${sysStaffVO.personState=='9eb'}">selected</c:if>>关闭</option>
                </select>
                <span class="redbtn">*</span>
            </div>
        </div>
    </div>
    
    
    <div class="content_group">
        <div class="span5">
            <label class="control-label">公司:</label>
            <div class="controls">
                <select id="cmpName">
                	<c:forEach items="${sysCmpList}" var="cmpList" varStatus="status">
                		<option id="${cmpList.cmpId}" <c:if test="${cmpList.cmpId==sysStaffVO.cmpId}">selected</c:if> >${cmpList.cmpName}</option>
                    </c:forEach>
                </select>
                <span class="redbtn">*</span>
            </div>
        </div>
    </div>
    
    
    <div class="content_group">
        <div class="span5">
            <label class="control-label">部门:</label>
            <div class="controls">
            	<input id="depId" type="text" value="${depId}" style="display: none;" /> 
            	<%--隐藏下拉框，储存数据 --%>
                <select id="depNameNone" style="display:none;">
                	<c:forEach items="${sysDeptarment}" var="depName" varStatus="status">
                		<option cmpId="${depName.cmpId }" depId="${depName.depId }" >${depName.depName}</option>
                    </c:forEach>
                </select>
                <select id="depName" >
                </select>
                <span class="redbtn">*</span>
            </div>
        </div>
    </div>
    
        <div class="content_group">
        <div class="span5">
            <label class="control-label">权限:</label>
            <div class="controls">
                <select id="roleName" >
                	<c:forEach items="${sysRole}" var="role" varStatus="status">
                		<option <c:if test="${roleId==role.roleId}">selected</c:if> >${role.roleName}</option>
                    </c:forEach>
                </select>
                <span class="redbtn">*</span>
            </div>
        </div>
    </div>
    
    
     <div class="last_group">
        <div class="span5">
            <label class="control-label">备注:</label>
            <div class="controls">
                <textarea id="remark" name="remark">${sysStaffVO.remark}</textarea>
            </div>
        </div>
    </div>
   
</div>
<div class="btn_bottom">
    <div class="spanbtn">
    	<c:if test="${sysStaffVO.personName==null}">
       		<button class="press_btn1 Keep"><i class="save top_current"></i>保存</button>
    	</c:if>
    	<c:if test="${sysStaffVO.personName!=null}">
       		<button class="press_btn1 Sub"><i class="save top_current"></i>提交</button>
    	</c:if>
        <button class="press_btn2 Close"><i class="del top_current"></i>关闭</button>
    </div>
</div>

</body>
<script type="text/javascript">

</script>
</html>